home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12275 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  47 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.bc.net!news!news
  3. From: rmcouat@dowco.com (Ron McOuat)
  4. Subject: Re: Will JAVA kill C++?
  5. Sender: news@dowco.com
  6. Message-ID: <DoI1Gw.BF3@dowco.com>
  7. Date: Tue, 19 Mar 1996 05:18:44 GMT
  8. References: <313E44EA.14D110C0@netcom.com> <4hp18v$3di@frodo.smartlink.net> <4hq2j6$q93@galaxy.ucr.edu> <4ie2m7$5re@hn.ocbbs.gen.nz>
  9. Nntp-Posting-Host: ppp41.dowco.com
  10. Organization: Dowco Computer System Ltd.
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. steve@hn.ocbbs.gen.nz (Steve Detoni) wrote:
  14.  
  15.  
  16. [snip]
  17. >: :    Java main advantage, and a large advantage it is, will be complete
  18. >: : cross-platform compatibility.  Meaning any JAVA program will run on any
  19. >: : machine which has an interpreter programmed for it.  
  20.  
  21. >: Just like C++, no?  Either language can be compiled into an
  22. >: efficiently interpretable pseudo-code.  Perhaps, someone will retarget
  23. >: g++ to the JAVA pseudo-machine, just to prove the point.
  24. >I had a look at JAVA within a book at a book store, at first glance I 
  25. >thought it was c++, and could find little difference between the two 
  26. >syntaxitly in the what code saw. Why would anyone re-event a langauge 
  27. >(i.e. C)?
  28.  
  29.  
  30. >Steve.
  31.  
  32. The point is JAVA is a byte code interpreter.  The compiler takes the
  33. source and converts it to an architecture independent format that is
  34. then passed to another machine.  The client machine which executes the
  35. code will interpret the byte codes and produce the right output on a
  36. possibly different architecture.  The low level access provided by C
  37. and C++ would be difficult to implement in an architecture independent
  38. interpreter.
  39.  
  40. This is not exactly new - P-code interpreters were a common Pascal
  41. implementation 15 years ago and are based on similar ideas as are some
  42. implementations of LISP.  It just has wide scale acceptance and a
  43. perfect application in Web server - browser interactions.  As far as
  44. efficiency is concerned - that depends on the application.  I don't
  45. think I would want to use JAVA for numerical analysis for example.
  46.  
  47.